package c.a.a.d0;

import c.a.a.d0.h0.c.a;
import c.j.a.d.b.d.p;
import c.j.a.d.b.e.h;
import c.j.a.d.b.j.u;

/* compiled from: LottieCompositionMoshiParser */
public class s {
    public static final a a = a.a("w", h.q, "ip", "op", "fr", "v", "layers", "assets", "fonts", "chars", "markers");
    public static a b = a.a("id", "layers", "w", h.q, p.a, u.d);
    public static final a c = a.a("list");
    public static final a d = a.a("cm", "tm", "dr");

    /* JADX WARNING: Missing block: B:63:0x0174, code skipped:
            r21 = r8;
            r23 = r9;
     */
    /* JADX WARNING: Missing block: B:93:0x020a, code skipped:
            r8 = r10;
     */
    /* JADX WARNING: Missing block: B:155:0x038b, code skipped:
            r10 = r8;
            r8 = r21;
     */
    /* JADX WARNING: Missing block: B:156:0x038e, code skipped:
            r9 = r23;
     */
    /* JADX WARNING: Missing block: B:159:0x03ac, code skipped:
            r8 = r21;
     */
    /* JADX WARNING: Missing block: B:161:0x03b2, code skipped:
            r10 = r8;
            r15 = r20;
            r8 = r21;
            r11 = r22;
     */
    public static c.a.a.f a(c.a.a.d0.h0.c r32) throws java.io.IOException {
        /*
        r0 = r32;
        r1 = c.a.a.e0.g.c();
        r2 = new b.f.e;
        r3 = 10;
        r2.m388init(r3);
        r4 = new java.util.ArrayList;
        r4.<init>();
        r5 = new java.util.HashMap;
        r5.<init>();
        r6 = new java.util.HashMap;
        r6.<init>();
        r7 = new java.util.HashMap;
        r7.<init>();
        r8 = new java.util.ArrayList;
        r8.<init>();
        r9 = new b.f.i;
        r9.m400init(r3);
        r10 = new c.a.a.f;
        r10.m788init();
        r32.o();
        r11 = 0;
        r13 = 0;
        r14 = 0;
        r15 = 0;
        r16 = 0;
    L_0x0039:
        r17 = r32.t();
        if (r17 == 0) goto L_0x03ba;
    L_0x003f:
        r3 = a;
        r3 = r0.w0(r3);
        r19 = 0;
        switch(r3) {
            case 0: goto L_0x039f;
            case 1: goto L_0x0391;
            case 2: goto L_0x037f;
            case 3: goto L_0x036d;
            case 4: goto L_0x035c;
            case 5: goto L_0x0319;
            case 6: goto L_0x02c9;
            case 7: goto L_0x020d;
            case 8: goto L_0x017a;
            case 9: goto L_0x00c4;
            case 10: goto L_0x005b;
            default: goto L_0x004a;
        };
    L_0x004a:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r32.x0();
        r32.y0();
        goto L_0x03b2;
    L_0x005b:
        r32.n();
    L_0x005e:
        r3 = r32.t();
        if (r3 == 0) goto L_0x00bb;
    L_0x0064:
        r32.o();
        r3 = r19;
        r20 = 0;
        r21 = 0;
    L_0x006d:
        r18 = r32.t();
        if (r18 == 0) goto L_0x00a3;
    L_0x0073:
        r12 = d;
        r12 = r0.w0(r12);
        if (r12 == 0) goto L_0x009c;
    L_0x007b:
        r22 = r11;
        r11 = 1;
        if (r12 == r11) goto L_0x0092;
    L_0x0080:
        r11 = 2;
        if (r12 == r11) goto L_0x008a;
    L_0x0083:
        r32.x0();
        r32.y0();
        goto L_0x0099;
    L_0x008a:
        r11 = r32.w();
        r11 = (float) r11;
        r21 = r11;
        goto L_0x0099;
    L_0x0092:
        r11 = r32.w();
        r11 = (float) r11;
        r20 = r11;
    L_0x0099:
        r11 = r22;
        goto L_0x006d;
    L_0x009c:
        r22 = r11;
        r3 = r32.t0();
        goto L_0x006d;
    L_0x00a3:
        r22 = r11;
        r32.r();
        r11 = new c.a.a.b0.h;
        r12 = r20;
        r20 = r15;
        r15 = r21;
        r11.m708init(r3, r12, r15);
        r8.add(r11);
        r15 = r20;
        r11 = r22;
        goto L_0x005e;
    L_0x00bb:
        r22 = r11;
        r20 = r15;
        r32.q();
        goto L_0x0174;
    L_0x00c4:
        r22 = r11;
        r20 = r15;
        r32.n();
    L_0x00cb:
        r3 = r32.t();
        if (r3 == 0) goto L_0x0171;
    L_0x00d1:
        r3 = c.a.a.d0.i.a;
        r3 = new java.util.ArrayList;
        r3.<init>();
        r32.o();
        r11 = 0;
        r26 = r11;
        r28 = r26;
        r30 = r19;
        r31 = r30;
        r25 = 0;
    L_0x00e7:
        r11 = r32.t();
        if (r11 == 0) goto L_0x015c;
    L_0x00ed:
        r11 = c.a.a.d0.i.a;
        r11 = r0.w0(r11);
        if (r11 == 0) goto L_0x0152;
    L_0x00f5:
        r12 = 1;
        if (r11 == r12) goto L_0x014d;
    L_0x00f8:
        r12 = 2;
        if (r11 == r12) goto L_0x0148;
    L_0x00fb:
        r12 = 3;
        if (r11 == r12) goto L_0x0143;
    L_0x00fe:
        r12 = 4;
        if (r11 == r12) goto L_0x013e;
    L_0x0101:
        r12 = 5;
        if (r11 == r12) goto L_0x010b;
    L_0x0104:
        r32.x0();
        r32.y0();
        goto L_0x00e7;
    L_0x010b:
        r32.o();
    L_0x010e:
        r11 = r32.t();
        if (r11 == 0) goto L_0x013a;
    L_0x0114:
        r11 = c.a.a.d0.i.b;
        r11 = r0.w0(r11);
        if (r11 == 0) goto L_0x0123;
    L_0x011c:
        r32.x0();
        r32.y0();
        goto L_0x010e;
    L_0x0123:
        r32.n();
    L_0x0126:
        r11 = r32.t();
        if (r11 == 0) goto L_0x0136;
    L_0x012c:
        r11 = c.a.a.d0.f.a(r0, r10);
        r11 = (c.a.a.b0.k.n) r11;
        r3.add(r11);
        goto L_0x0126;
    L_0x0136:
        r32.q();
        goto L_0x010e;
    L_0x013a:
        r32.r();
        goto L_0x00e7;
    L_0x013e:
        r31 = r32.t0();
        goto L_0x00e7;
    L_0x0143:
        r30 = r32.t0();
        goto L_0x00e7;
    L_0x0148:
        r28 = r32.w();
        goto L_0x00e7;
    L_0x014d:
        r26 = r32.w();
        goto L_0x00e7;
    L_0x0152:
        r11 = r32.t0();
        r12 = 0;
        r25 = r11.charAt(r12);
        goto L_0x00e7;
    L_0x015c:
        r32.r();
        r11 = new c.a.a.b0.d;
        r23 = r11;
        r24 = r3;
        r23.m702init(r24, r25, r26, r28, r30, r31);
        r3 = r11.hashCode();
        r9.g(r3, r11);
        goto L_0x00cb;
    L_0x0171:
        r32.q();
    L_0x0174:
        r21 = r8;
        r23 = r9;
        goto L_0x020a;
    L_0x017a:
        r22 = r11;
        r20 = r15;
        r32.o();
    L_0x0181:
        r3 = r32.t();
        if (r3 == 0) goto L_0x0203;
    L_0x0187:
        r3 = c;
        r3 = r0.w0(r3);
        if (r3 == 0) goto L_0x0196;
    L_0x018f:
        r32.x0();
        r32.y0();
        goto L_0x0181;
    L_0x0196:
        r32.n();
    L_0x0199:
        r3 = r32.t();
        if (r3 == 0) goto L_0x01fa;
    L_0x019f:
        r3 = c.a.a.d0.j.a;
        r32.o();
        r3 = r19;
        r11 = r3;
        r12 = r11;
        r15 = 0;
    L_0x01a9:
        r18 = r32.t();
        if (r18 == 0) goto L_0x01e8;
    L_0x01af:
        r21 = r8;
        r8 = c.a.a.d0.j.a;
        r8 = r0.w0(r8);
        if (r8 == 0) goto L_0x01df;
    L_0x01b9:
        r23 = r9;
        r9 = 1;
        if (r8 == r9) goto L_0x01d6;
    L_0x01be:
        r9 = 2;
        if (r8 == r9) goto L_0x01d1;
    L_0x01c1:
        r9 = 3;
        if (r8 == r9) goto L_0x01cb;
    L_0x01c4:
        r32.x0();
        r32.y0();
        goto L_0x01da;
    L_0x01cb:
        r8 = r32.w();
        r15 = (float) r8;
        goto L_0x01da;
    L_0x01d1:
        r12 = r32.t0();
        goto L_0x01da;
    L_0x01d6:
        r11 = r32.t0();
    L_0x01da:
        r8 = r21;
        r9 = r23;
        goto L_0x01a9;
    L_0x01df:
        r23 = r9;
        r3 = r32.t0();
        r8 = r21;
        goto L_0x01a9;
    L_0x01e8:
        r21 = r8;
        r23 = r9;
        r32.r();
        r8 = new c.a.a.b0.c;
        r8.m701init(r3, r11, r12, r15);
        r7.put(r11, r8);
        r8 = r21;
        goto L_0x0199;
    L_0x01fa:
        r21 = r8;
        r23 = r9;
        r32.q();
        goto L_0x0181;
    L_0x0203:
        r21 = r8;
        r23 = r9;
        r32.r();
    L_0x020a:
        r8 = r10;
        goto L_0x03b2;
    L_0x020d:
        r21 = r8;
        r23 = r9;
        r22 = r11;
        r20 = r15;
        r32.n();
    L_0x0218:
        r3 = r32.t();
        if (r3 == 0) goto L_0x02c0;
    L_0x021e:
        r3 = new java.util.ArrayList;
        r3.<init>();
        r8 = new b.f.e;
        r9 = 10;
        r8.m388init(r9);
        r32.o();
        r11 = r19;
        r28 = r11;
        r29 = r28;
        r25 = 0;
        r26 = 0;
    L_0x0237:
        r12 = r32.t();
        if (r12 == 0) goto L_0x02a4;
    L_0x023d:
        r12 = b;
        r12 = r0.w0(r12);
        if (r12 == 0) goto L_0x029a;
    L_0x0245:
        r15 = 1;
        if (r12 == r15) goto L_0x0275;
    L_0x0248:
        r15 = 2;
        if (r12 == r15) goto L_0x026e;
    L_0x024b:
        r15 = 3;
        if (r12 == r15) goto L_0x0268;
    L_0x024e:
        r9 = 4;
        if (r12 == r9) goto L_0x0262;
    L_0x0251:
        r9 = 5;
        if (r12 == r9) goto L_0x025d;
    L_0x0254:
        r32.x0();
        r32.y0();
        r18 = r10;
        goto L_0x0297;
    L_0x025d:
        r29 = r32.t0();
        goto L_0x02a1;
    L_0x0262:
        r9 = 5;
        r28 = r32.t0();
        goto L_0x02a1;
    L_0x0268:
        r9 = 5;
        r26 = r32.h0();
        goto L_0x02a1;
    L_0x026e:
        r9 = 5;
        r15 = 3;
        r25 = r32.h0();
        goto L_0x02a1;
    L_0x0275:
        r9 = 5;
        r15 = 3;
        r32.n();
    L_0x027a:
        r12 = r32.t();
        if (r12 == 0) goto L_0x0292;
    L_0x0280:
        r12 = c.a.a.d0.r.a(r0, r10);
        r18 = r10;
        r9 = r12.d;
        r8.h(r9, r12);
        r3.add(r12);
        r10 = r18;
        r9 = 5;
        goto L_0x027a;
    L_0x0292:
        r18 = r10;
        r32.q();
    L_0x0297:
        r10 = r18;
        goto L_0x02a1;
    L_0x029a:
        r18 = r10;
        r15 = 3;
        r11 = r32.t0();
    L_0x02a1:
        r9 = 10;
        goto L_0x0237;
    L_0x02a4:
        r18 = r10;
        r15 = 3;
        r32.r();
        if (r28 == 0) goto L_0x02b9;
    L_0x02ac:
        r3 = new c.a.a.m;
        r24 = r3;
        r27 = r11;
        r24.m798init(r25, r26, r27, r28, r29);
        r6.put(r11, r3);
        goto L_0x02bc;
    L_0x02b9:
        r5.put(r11, r3);
    L_0x02bc:
        r10 = r18;
        goto L_0x0218;
    L_0x02c0:
        r18 = r10;
        r32.q();
        r8 = r18;
        goto L_0x03b2;
    L_0x02c9:
        r21 = r8;
        r23 = r9;
        r18 = r10;
        r22 = r11;
        r20 = r15;
        r32.n();
        r3 = 0;
    L_0x02d7:
        r8 = r32.t();
        if (r8 == 0) goto L_0x0312;
    L_0x02dd:
        r8 = r18;
        r9 = c.a.a.d0.r.a(r0, r8);
        r10 = r9.e;
        r11 = c.a.a.b0.l.e.a.IMAGE;
        if (r10 != r11) goto L_0x02eb;
    L_0x02e9:
        r3 = r3 + 1;
    L_0x02eb:
        r4.add(r9);
        r10 = r9.d;
        r2.h(r10, r9);
        r9 = 4;
        if (r3 <= r9) goto L_0x030f;
    L_0x02f6:
        r9 = new java.lang.StringBuilder;
        r9.<init>();
        r10 = "You have ";
        r9.append(r10);
        r9.append(r3);
        r10 = " images. Lottie should primarily be used with shapes. If you are using Adobe Illustrator, convert the Illustrator layers to shape layers.";
        r9.append(r10);
        r9 = r9.toString();
        c.a.a.e0.c.b(r9);
    L_0x030f:
        r18 = r8;
        goto L_0x02d7;
    L_0x0312:
        r8 = r18;
        r32.q();
        goto L_0x03b2;
    L_0x0319:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r3 = r32.t0();
        r9 = "\\.";
        r3 = r3.split(r9);
        r9 = 0;
        r10 = r3[r9];
        r9 = java.lang.Integer.parseInt(r10);
        r10 = 1;
        r11 = r3[r10];
        r11 = java.lang.Integer.parseInt(r11);
        r12 = 2;
        r3 = r3[r12];
        r3 = java.lang.Integer.parseInt(r3);
        r12 = 4;
        if (r9 >= r12) goto L_0x0345;
    L_0x0344:
        goto L_0x0352;
    L_0x0345:
        if (r9 <= r12) goto L_0x0348;
    L_0x0347:
        goto L_0x0350;
    L_0x0348:
        if (r11 >= r12) goto L_0x034b;
    L_0x034a:
        goto L_0x0352;
    L_0x034b:
        if (r11 <= r12) goto L_0x034e;
    L_0x034d:
        goto L_0x0350;
    L_0x034e:
        if (r3 < 0) goto L_0x0352;
    L_0x0350:
        r12 = 1;
        goto L_0x0353;
    L_0x0352:
        r12 = 0;
    L_0x0353:
        if (r12 != 0) goto L_0x03b2;
    L_0x0355:
        r3 = "Lottie only supports bodymovin >= 4.4.0";
        r8.a(r3);
        goto L_0x03b2;
    L_0x035c:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r9 = r32.w();
        r3 = (float) r9;
        r16 = r3;
        goto L_0x038b;
    L_0x036d:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r20 = r15;
        r9 = r32.w();
        r3 = (float) r9;
        r9 = 1008981770; // 0x3c23d70a float:0.01 double:4.9850323E-315;
        r11 = r3 - r9;
        goto L_0x038b;
    L_0x037f:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r9 = r32.w();
        r15 = (float) r9;
    L_0x038b:
        r10 = r8;
        r8 = r21;
    L_0x038e:
        r9 = r23;
        goto L_0x03ae;
    L_0x0391:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r14 = r32.h0();
        goto L_0x03ac;
    L_0x039f:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r13 = r32.h0();
    L_0x03ac:
        r8 = r21;
    L_0x03ae:
        r3 = 10;
        goto L_0x0039;
    L_0x03b2:
        r10 = r8;
        r15 = r20;
        r8 = r21;
        r11 = r22;
        goto L_0x038e;
    L_0x03ba:
        r21 = r8;
        r23 = r9;
        r8 = r10;
        r22 = r11;
        r20 = r15;
        r0 = (float) r13;
        r0 = r0 * r1;
        r0 = (int) r0;
        r3 = (float) r14;
        r3 = r3 * r1;
        r1 = (int) r3;
        r3 = new android.graphics.Rect;
        r9 = 0;
        r3.<init>(r9, r9, r0, r1);
        r8.j = r3;
        r15 = r20;
        r8.k = r15;
        r11 = r22;
        r8.l = r11;
        r3 = r16;
        r8.m = r3;
        r8.i = r4;
        r8.h = r2;
        r8.c = r5;
        r8.d = r6;
        r0 = r23;
        r8.g = r0;
        r8.e = r7;
        r0 = r21;
        r8.f = r0;
        return r8;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.a.a.d0.s.a(c.a.a.d0.h0.c):c.a.a.f");
    }
}
